{% extends "base.html" %}

{% comment %}
twitter_picture
twitter_name
feeds = [(type, url), ...]
{% endcomment %}

{% block extra_head %}
{% for feed in feeds %}
    <link rel="alternate" type="application/atom+xml" href="{{ feed.1 }}"
        title="Twitter / {{ twitter_name }} / {{ feed.0 }}">
{% endfor %}
{% endblock %}

{% block header %}
<img src="{{ twitter_picture }}">
Authenticated feeds for
<a href="http://twitter.com/{{ twitter_name }}">{{ twitter_name }}</a>
{% endblock %}

{% block content %}
<ul>
{% for feed in feeds %}
    <li>
        <a href="{{ feed.1 }}">{{ feed.0 }}</a>
    </li>
{% endfor %}
</ul>

{% endblock %}

{% block nav %}
<h2>Account Management</h2>

<p>If you want to connect another Twitter account with Pithy Comment,
log into the <a href="http://twitter.com/">Twitter</a> account
you want to use and then
<a href="/login">re-authenticate</a> with Pithy Comment.</p>

<p>If for some reason you no longer want Pithy Comment to have authenticated
access to your Twitter account, then remove Pithy Comment from the
<a href="http://twitter.com/settings/connections">list of
    connected apps that have access to your Twitter account</a>.</p>

<!-- XXX Probably use a GET to make /recreate work
<p>You can <a href="/recreate">re-create your secret key</a> that
Pithy Comment embeds in each of your authenticated feeds if you are afraid
someone else has learned what it is. Do realize,
though, that if you do re-create your secret key then all of your previous
feed URLs will become invalid.</p>
-->
{% endblock %}
